﻿using Joy.Erp.BasicArchives.Core;
using System;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    /// <summary>
    /// 物料清单子项
    /// </summary>
    public class BomComponent : DocumentLineAggregateRoot, IChild
    {
        /// <summary>
        /// 销售订单
        /// </summary>
        public BomMaster Document { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public Guid ItemMasterId { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public ItemMaster ItemMaster { get; set; }

        /// <summary>
        /// 料品编号
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 料品名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ItemSpec { get; set; }

        /// <summary>
        /// 用量
        /// </summary>
        public decimal UseCount { get; set; }

        /// <summary>
        /// 母件用量
        /// </summary>
        public decimal ParentCount { get; set; }

        /// <summary>
        /// 用量单位
        /// </summary>
        public Guid UnitId { get; set; }

        /// <summary>
        /// 用量单位
        /// </summary>
        public AuxiliaryUnit Unit { get; set; }
    }
}
